﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="POSearch.ascx.cs" Inherits="VPNNew.UserContorls.POSearch" %>
<div id="searchPanel">
    <div>
        <span>[[UserName]]:</span><asp:TextBox ID="txtUserName" runat="server" MaxLength="50"></asp:TextBox>
    </div>
    <div>
        <span>[[PONumber]]: </span>
        <asp:TextBox ID="txtPONumber" runat="server" MaxLength="20"></asp:TextBox>
        &nbsp; &nbsp;<span>[[POStatus]]:</span>
        <asp:DropDownList ID="ddlStatus" runat="server" Width="94px">
        </asp:DropDownList>
    </div>
    <div>
        <span>[[CreateDate]]:</span>
        <asp:TextBox ID="txtCDS" runat="server" ValidationGroup="search" />
        <atk:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtCDS" />
        ~
        <asp:TextBox ID="txtCDE" runat="server" ValidationGroup="search" />
        <atk:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtCDE" />
    </div>
    <div>
        <span>[[PayDate]]:</span>
        <asp:TextBox ID="txtPDS" runat="server" ValidationGroup="search" />
        <atk:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtPDS" />
        ~
        <asp:TextBox ID="txtPDE" runat="server" ValidationGroup="search" />
        <atk:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="txtPDE" />
    </div>
    <asp:RangeValidator ID="RangeValidator1" Type="Date" runat="server" MaximumValue="2099-12-31"
        MinimumValue="2000-1-1" ControlToValidate="txtCDS" Display="none" ErrorMessage="[[VALCDSError]]"
        ValidationGroup="search" />
    <asp:RangeValidator ID="RangeValidator2" Type="Date" runat="server" MaximumValue="2099-12-31"
        MinimumValue="2000-1-1" ControlToValidate="txtCDE" Display="none" ErrorMessage="[[VALCDEError]]"
        ValidationGroup="search" />
    <asp:RangeValidator ID="RangeValidator3" Type="Date" runat="server" MaximumValue="2099-12-31"
        MinimumValue="2000-1-1" ControlToValidate="txtPDS" Display="none" ErrorMessage="[[VALPDSError]]"
        ValidationGroup="search" />
    <asp:RangeValidator ID="RangeValidator4" Type="Date" runat="server" MaximumValue="2099-12-31"
        MinimumValue="2000-1-1" ControlToValidate="txtPDE" Display="none" ErrorMessage="[[VALPDEError]]"
        ValidationGroup="search" />
    <div>
        <asp:Button ID="btnSearch" runat="server" Text="[[Filter]]" ValidationGroup="search"
            OnClick="btnSearch_Click" />
        <asp:Button ID="btnClear" runat="server" Text="[[ClearFilter]]" OnClick="btnClear_Click" />
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="search" />
    </div>
</div>
